/*
 * @Description:
 * @Author: cgt
 * @Date: 2021-12-29 18:00:27
 * @LastEditors: cgt
 * @LastEditTime: 2021-12-29 18:41:47
 */
var upperCase = require('./upper-case');

/**
 * Upper case the first character of a string.
 *
 * @param  {String} str
 * @return {String}
 */
module.exports = function(_str, locale) {
  var str = _str;
  if (str === null) {
    return '';
  }

  str = String(str);

  return upperCase(str.charAt(0), locale) + str.substr(1);
};
